package com.fc.backingbeans;

import java.io.Serializable;

import javax.faces.bean.SessionScoped;

import org.springframework.stereotype.Component;

@Component("navigationController")
@SessionScoped
class NavigationController implements Serializable {
	String page = "fc/food/foodTable.xhtml"
	boolean renderFlag = true

	void viewActivity() {
		page = "fc/workout/activity.xhtml"	
	}
	
	void viewFoodJournal() {
		page = "fc/journal/foodJournal.xhtml"
	}
	
	void viewMeasurementJournal() {
		page = "fc/journal/measurementJournal.xhtml"
	}
	
	void viewWorkoutJournal() {
		page = "fc/journal/workoutJournal.xhtml"
	}
	
	void viewBmiCalculator() {
		page = "fc/calculator/bmi.xhtml"
	}
	
	void viewBmrCalculator() {
		page = "fc/calculator/bmr.xhtml"
	}
	
	void viewFoodTable() {
		page = "fc/food/foodTable.xhtml"
	}

	void viewAccount() {
		page = "fc/account.xhtml"
	}

	void viewRegistration() {
		page = "fc/index/registration.xhtml"
	}

	void viewRecipes() {
		page = "fc/food/recipeTable.xhtml"
	}
	
	void viewWorkout() {
		page = "fc/workout/workout.xhtml"
	}
	
	void viewCalculators() {
		page = "fc/calculator/calculators.xhtml"
	}
}
